/**
 * 
 */
package org.t2.game.server.module.mail.service;

import org.gaming.service.service.jvm.PlayerOneToOneResetableService;
import org.springframework.stereotype.Service;
import org.t2.game.server.module.mail.model.MailPlayer;

/**
 * @author YY
 *
 */
@Service
public class MailPlayerService extends PlayerOneToOneResetableService<MailPlayer> {
	
	@Override
	protected MailPlayer createWhenNull(long entityId) {
		return new MailPlayer();
	}

	@Override
	protected void doDailyReset(MailPlayer entity) {
		entity.setSendDailyReward(false);
	}
}
